package com.ljf.captcha;

import com.ljf.captcha.config.CaptchaConfig;

/**
 * 说明：
 *
 * @Auther: lijinfeng
 * @Date: 2024/4/30
 */
public class CaptchaManager {
    /**
     * Sso 配置 Bean
     */
    private volatile static CaptchaConfig captchaConfig;

    public static CaptchaConfig getCaptchaConfig() {
        if (captchaConfig == null) {
            synchronized (CaptchaManager.class) {
                if (captchaConfig == null) {
                    setCaptchaConfig(new CaptchaConfig());
                }
            }
        }
        return captchaConfig;
    }
    public static void setCaptchaConfig(CaptchaConfig config) {
        CaptchaManager.captchaConfig = config;
    }
}
